package com.syl.starter.itools.base.beans;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.nio.file.Path;

/**
 * 文件路径bean
 *
 * @author syl
 * @create 2020-04-16 10:21
 **/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class FilePath {
    /**
     * 名称
     */
    private String name;
    /**
     * 是否文件夹
     */
    private boolean folder;
    /**
     * 文件路径
     */
    private Path path;

    public FilePath(String name, boolean folder, Path path) {
        this.name = name;
        this.folder = folder;
        this.path = path;
    }

}
